import request from '@/utils/request'

// 分页查询角色数据
export const GetSysRoleListByPage = (page , limit , parms) => {
    return request({
        url: '/sys/patient/listp/' + page + "/" + limit,
        method: 'get',
        params: parms
    })
}
// 分页查询角色数据
export const GetSysRoleListByPage1tang = (page , limit , parms) => {
    return request({
        url: '/sys/patient/listh/' + page + "/" + limit,
        method: 'get',
        params: parms
    })
}
// 分页查询角色数据
export const GetSysRoleListByPage1tang1 = (page , limit , parms) => {
    return request({
        url: '/sys/patient/listhtang/' + page + "/" + limit,
        method: 'get',
        params: parms
    })
}
// 分页查询角色数据
export const GetSysRoleListByPage2tang = (page , limit , parms) => {
    return request({
        url: '/sys/patient/listmtang/' + page + "/" + limit,
        method: 'get',
        params: parms
    })
}
// 查询一般角色数据根据id
export const findbyId = (parms) => {
    return request({
        url: '/sys/patient/listhbyId',
        method: 'get',
        params: parms
    })
}
// 分页查询角色数据
export const GetSysRoleListByPage3tang = (page , limit , parms) => {
    return request({
        url: '/sys/patient/listgtang/' + page + "/" + limit,
        method: 'get',
        params: parms
    })
}
// 分页查询角色数据
export const GetSysRoleListByPage4tang = (page , limit , parms) => {
    return request({
        url: '/sys/patient/listh2tang/' + page + "/" + limit,
        method: 'get',
        params: parms
    })
}
// 分页查询角色数据
export const GetSysRoleListByPage5tang = (page , limit , parms) => {
    return request({
        url: '/sys/patient/listm2tang/' + page + "/" + limit,
        method: 'get',
        params: parms
    })
}
// 分页查询角色数据
export const GetSysRoleListByPage6tang = (page , limit , parms) => {
    return request({
        url: '/sys/patient/listg2tang/' + page + "/" + limit,
        method: 'get',
        params: parms
    })
}

//省市县
export const findname = (id) => {
    return request({
        url: '/sys/patient/findname/' + id,
        method: 'get',
    })
}
export const shengshixian = () => {
    return request({
        url: '/sys/patient/shengshixian',
        method: 'get',
    })
}
export const shiq = (pid) => {
    return request({
        url: '/sys/patient/shiq/'+pid,
        method: 'get',
    })
}
export const xianq = (pids) => {
    return request({
        url: '/sys/patient/xianq/'+pids,
        method: 'get',
    })
}

export const maritalIdLists = () => {
    return request({
        url: '/sys/patient/maritalIdList',
        method: 'get',
    })
}
// 添加个人信息
export const add = parms => {
    return request({
        url: '/sys/patient/add',
        method: 'post',
        data: parms
    })
}
// 添加个人信息
export const addg = parms => {
    return request({
        url: '/sys/patient/addg',
        method: 'post',
        data: parms
    })
}

export const update = parms => {
    return request({
        url: '/sys/patient/update',
        method: 'put',
        data: parms
    })
}
export const updateg = parms => {
    return request({
        url: '/sys/patient/updateg',
        method: 'put',
        data: parms
    })
}
export const deletes = parms => {
    return request({
        url: '/sys/patient/delete',
        method: 'delete',
        data: parms
    })
}
export const deleteg = parms => {
    return request({
        url: '/sys/patient/deleteg',
        method: 'delete',
        data: parms
    })
}
